//Ball.cpp//
#include "pch.h"
#include "Vector.h"
#include "Ball.h"
#include <vector>
#include "Game.h"

using namespace Math;
//(width of rectangle - 20 to account for radius of balls... 
                        //could have also created a larger number of the y value, but we can just ignore that.)

Ball::Ball ()
{
	Pos(Vector2d((float)(rand() % 320 + 240), (float)(rand() % 320 + 240)));
	Vel(Vector2d((rand() % 20 - 10)/250.f + .05f, (rand () % 20 - 10)/250.f + .05f));
	SetMass((rand() % 125)/350.f + .35f);
	alpha = 255;
}